package com.shujia;

import com.shujia.utils.MysqlTool;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;


/*
    jdbc实现模糊查询
    select * from pp_twice_car where car_info like '%奔驰%'
 */
public class JDBCDemo6 {
    public static void main(String[] args) throws Exception{
        Connection conn = MysqlTool.getConnection();
        PreparedStatement prepareStatement = conn.prepareStatement("select * from world_total_pie where total_confirm>?");
        prepareStatement.setInt(1,1000000);
        ResultSet resultSet = prepareStatement.executeQuery();
        MysqlTool.printResultSet(resultSet);

    }
}
